package com.baofu.paycore.common.utils;

/**
 * description: 常用常亮
 *
 * User: liu ting  Date: 2016/5/17 ProjectName: paycore Version: 1.0
 */
public class Constant {

    /**
     * 业务收手续费产品细类
     */
//    public static final String FEE = "FEE";

    /**
     * 天数
     */
    public static final int DAY = 365;

    /**
     * 用于Dispatch前三天计算的数字
     */
    public static final int DISPATCH_DAY = -3;

    /**
     * redis key 存在时间(一天)
     */
    public static final int KEY_TIME = 1000 * 60 * 60 * 24 ;

    /**
     * Long值校验
     *
     * @param param 参数
     * @return      校验后参数
     */
    public static Long validateLong(Long param){
        if (param == null){
            return 0L;
        }
        return param;
    }
}
